package cn.gzjp.modules.gas.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 发票Entity
 * @author zengcp
 * @version 2018-03-09
 */
public class GasInvoice extends DataEntity<GasInvoice> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 发票抬头
	private String taxpayerSn;		// 纳税人识别号
	private String address;		// 单位地址
	private String mobile;		// 手机号
	private String bankName;		// 银行名称
	private String bankAccount;		// 银行账号
	private String openid;		// openid
	
	public GasInvoice() {
		super();
	}

	public GasInvoice(String id){
		super(id);
	}

	@Length(min=0, max=128, message="发票抬头长度必须介于 0 和 128 之间")
	@ExcelField(title="发票抬头", align=2, sort=1)
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=32, message="纳税人识别号长度必须介于 0 和 32 之间")
	@ExcelField(title="纳税人识别号", align=2, sort=2)
	public String getTaxpayerSn() {
		return taxpayerSn;
	}

	public void setTaxpayerSn(String taxpayerSn) {
		this.taxpayerSn = taxpayerSn;
	}
	
	@Length(min=0, max=256, message="单位地址长度必须介于 0 和 256 之间")
	@ExcelField(title="单位地址", align=2, sort=3)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=12, message="手机号长度必须介于 0 和 12 之间")
	@ExcelField(title="手机号", align=2, sort=4)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=64, message="银行名称长度必须介于 0 和 64 之间")
	@ExcelField(title="银行名称", align=2, sort=5)
	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	
	@Length(min=0, max=32, message="银行账号长度必须介于 0 和 32 之间")
	@ExcelField(title="银行账号", align=2, sort=6)
	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}
	
	@Length(min=0, max=32, message="openid长度必须介于 0 和 32 之间")
	@ExcelField(title="openid", align=2, sort=7)
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
}